package com.hexu.event.service;

import com.hexu.event.dao.ConsultingDao;
import com.hexu.event.entity.Consulting;

import java.util.List;

public class ConsultingService {
    ConsultingDao consultingDao = new ConsultingDao();

    //添加用户咨询
    public boolean addConsulting(Consulting consulting){
        return consultingDao.addConsulting(consulting);
    }

    //返回咨询信息
    public List<Consulting> getConsulting(String account, String consultingAccount){
        return consultingDao.getConsulting(account,consultingAccount);
    }
}
